<?php
require_once('mysql_connect.php');
if (!isset($_SESSION['userid'])){
	header("Location:login.php");
	exit();
}

$loc ="byactor";

    $query = "SELECT * FROM actormovie WHERE actorid=" . $_GET['id'];
    $result = @mysql_query($query);
include('top.php');
?>
<TABLE><TR><TD>
<?php
if(mysql_num_rows($result) > 0){
?>	
<?php
	while($actorrow = mysql_fetch_array($result)){
	echo showmovie($actorrow['movieid']);	
	}
	?>
<?php
}
?>


</TD></TR></TABLE>
<?php
include('bot.php');
?>